<?php

namespace app\common\model\course;

use app\common\library\Utils;
use think\Model;

class Course extends Model
{
    protected $name = 'learn_course';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;


    public function getImagesArrAttr($value, $data)
    {
        $arr = Utils::explodeStr($data['images']);
        return $arr;
    }


}
